package com.my.financial.controller.form;

import javax.validation.constraints.Digits;

import org.hibernate.validator.constraints.NotBlank;

import com.my.financial.domain.User;

public class AddForm {
	
	@NotBlank(message="* 不能为空")
	private String type;
	@NotBlank(message="* 不能为空")
	private String item;
	@NotBlank(message="* 不能为空")
	@Digits(fraction = 2, integer = 10,message="* 格式不正确或记账金额超出允许范围")
	private String amount;
	@NotBlank(message="* 不能为空")
	private String member;
	@NotBlank(message="* 不能为空")
	private String accountId;
	private User user;
	private String summary;
	
	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getType() {
		return type;
	}

	public String getItem() {
		return item;
	}

	public String getAmount() {
		return amount;
	}
	
	public void setAmount(String amount) {
		this.amount = amount;
	}

	public void setType(String type) {
		this.type = type;
	}

	public void setItem(String item) {
		this.item = item;
	}

	public String getMember() {
		return member;
	}

	public void setMember(String member) {
		this.member = member;
	}

	public String getAccountId() {
		return accountId;
	}

	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
}
